package com.woniu.woniu_bx.filter;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @Description TODO
 * @Author zhangjin
 * @Date 2022/9/6 20:55
 */
@Setter
@Getter
public class AuthUser extends User {
    private int id;
    private int roleID;

    public AuthUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
    public AuthUser(int id,int roleID,String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id=id;
        this.roleID=roleID;
    }
}
